package start;

import org.hibernate.dialect.MySQLDialect;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.orm.jpa.LocalEntityManagerFactoryBean;
import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter;

public class Test05 {
    public Test05() {
        ApplicationContext context = new ClassPathXmlApplicationContext("META-INF\\beansPers.xml"); 
        JpaSpitterDao jpaSpitterDao = (JpaSpitterDao) context.getBean("start.jpaSpitterDao");
        Spitter s = new Spitter();
        s.setUsername("a");
        s.setPassword("111");
        jpaSpitterDao.addSpitter(new Spitter());
    }
}
